package ch01.decrator;

/**
 * Created by zc on 2016/11/20.
 */
public class ConcreateDecrator1 extends Decrator {

    public ConcreateDecrator1(Component component) {
        super(component);
    }

    @Override
    public void doSomething() {
        this.method1();
        super.doSomething();
    }

    private void method1(){
        System.out.println("this is a ConcreteDecrator1");
    }
}
